{% extends 'layout.html' %}
{% load static %}
{% block css %}
    <LINK rel="stylesheet" href="{% static 'plugins/bootstrap-datepicker.min.css' %}">
{% endblock %}
{% block content %}
<div class="card">
    <div class="card-header">
        新建用户
    </div>
    <div class="card-body">
        <form method="post" novalidate>
            {% csrf_token %}
            {% for field in form %}
                <div class="form-group">
                    <label for="{{ field.id_for_label }}">{{ field.label }}:</label>
                    {{ field }}
                <span class="text-danger">{{ field.errors.as_text }}</span>
                </div>
            {% endfor %}
            <button type="submit" class="btn btn-primary">提交</button>

        </form>
    </div>
</div>
{% endblock %}
{% block js %}
 <script src="{% static 'plugins/bootstrap-datepicker.min.js' %}"></script>
<script src="{% static 'plugins/bootstrap-datepicker.zh-CN.min.js' %}"></script>
    <script>
        $('#id_create_time').datepicker({
            language: 'zh-CN',
            format: 'yyyy-mm-dd',
            autoclose: true,
            todayHighlight: true,
        });
    </script>
{% endblock %}

